package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author 王加鑫
 * @Date 2021/08/15 20:19
 * @Since JDK 1.8
 */
@Mapper
public interface UserMapper {


    //根据用户名和密码查询用户信息
    @Select("select * from user where username = #{username} and password = #{password}")
    User findByUserNameAndPwd(@Param("username")String username, @Param("password")String password);

}
